package com.wangzh.extend;

import org.openjdk.jol.vm.VM;

public class Student1 extends Student{

    private String name;
    private Integer age;

    @Override
    public String getName() {
        return name;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }

    @Override
    public Integer getAge() {
        return age;
    }

    @Override
    public void setAge(Integer age) {
        this.age = age;
    }

    public void info(){
//        super.wait();

        super.setAge(12);
//        System.out.println(super.getAge()); //12
//        System.out.println(this.getAge());  //null
    }


}
